<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/main.css"/>
</head>
<body>
<include file="Public/head"/>
<div class="container clearfix">
    <include file="Public/left"/>
    <div class="main-wrap">
        <div class="crumb-wrap">
            <div class="crumb-list">
                <i class="icon-font"></i>
                <a href="__MODULE__/Index">首页</a>
                <span class="crumb-step">&gt;</span>
                <span class="crumb-name">栏目管理</span>
            </div>
        </div>
        <div class="search-wrap">
            <div class="search-content">
                <form action="/jscss/admin/design/index" method="post">
                    <table class="search-tab">
                        <tr>
                            <th width="120">选择分类:</th>
                            <td>
                                <select name="search-sort" id="">
                                    <option value="">全部</option>
                                    <option value="19">精品界面</option>
                                    <option value="20">推荐界面</option>
                                </select>
                            </td>
                            <th width="70">关键字:</th>
                            <td><input class="common-text" placeholder="关键字" name="keywords" value="" id="" type="text">
                            </td>
                            <td><input class="btn btn-primary btn2" name="sub" value="查询" type="submit"></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
        <div class="result-wrap">
            <form name="myform" id="myform" action="__CONTROLLER__/sort" method="post">
                <div class="result-title">
                    <div class="result-list">
                        <a href="__CONTROLLER__/add"><i class="icon-font"></i>新增栏目</a>
                    </div>
                </div>
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                            <th width="4%">排序</th>
                            <th width="4%">ID</th>
                            <th>栏目名称</th>
                            <th width="4%">状态</th>
                            <th width="10%">操作</th>
                        </tr>
                        <volist name="list" id="vo">
                            <tr>
                                <td>
                                    <input class="common-input sort-input" name="{$vo.id}" value="{$vo.sort}"
                                           type="text">
                                </td>
                                <td>{$vo.id}</td>
                                <td>{$vo.title}</td>
                                <td>
                                    <if condition="$vo['state'] eq 1">正常</if>
                                    <if condition="$vo['state'] eq 2">删除</if>
                                    <if condition="$vo['state'] eq 3">禁用</if>
                                </td>
                                <td>
                                    <a class="link-update" href="__CONTROLLER__/edit/id/{$vo.id}">修改</a>
                                    <if condition="$vo.state neq 3">
                                        <a class="link-update" onclick="return confirm('你要禁用该栏目吗？');"
                                           href="__CONTROLLER__/disable/id/{$vo.id}">禁用</a>
                                        <else/>
                                        <a class="link-update" onclick="return confirm('你要启用该栏目吗？');"
                                           href="__CONTROLLER__/enable/id/{$vo.id}">启用</a>
                                    </if>
                                    <a class="link-del" onclick="return confirm('你要删除该栏目吗？');"
                                       href="__CONTROLLER__/del/id/{$vo.id}">删除</a>
                                </td>
                            </tr>
                        </volist>
                    </table>
                    <div class="list-page" style="padding-bottom: 0px">{$page}</div>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript" src="__PUBLIC__/js/libs/modernizr.min.js"></script>
</body>
</html>